const BASE_URL = 'https://www.uinav.com'
function request (options) {
	return new Promise(resolve =>{
		uni.request({
			url: BASE_URL + options.url,
			success: (res) => {
				const {meta, message} = res.data
				if (meta.status === 200){
					resolve(message)
				}
			}
		})
	})
}
export default request